update
inline suspend fun <T : BaseModel> update(sub: String, id: String, body: String, expandRelations: ExpandRelations = ExpandRelations(), showFields: ShowFields = ShowFields()): T
Updates an existing records and gets it
Parameters
sub
The collection you wish to preform this action on
id
the id of the record to update
body
JSON data used to update the record in the form of a string
inline suspend fun <T : BaseModel> update(sub: String, id: String, body: Map<String, JsonPrimitive>, files: List<FileUpload>, expandRelations: ExpandRelations = ExpandRelations(), showFields: ShowFields = ShowFields()): T
Updates an existing records and gets it
Parameters
sub
The collection you wish to preform this action on
id
the id of the record to update
body
the key value data used to create the record
files
the files you wish to upload